<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新经资讯后台管理</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
    <link rel="stylesheet" href="../../static/admin/css/jquery.pagination.css">
    <script type="text/javascript" src="../../static/admin/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="../../static/admin/js/jquery.pagination.min.js"></script>
</head>
<body>
    <div class="breadcrub">
            当前位置：用户管理>用户列表
        </div>
        <div class="pannel">
            <table class="common_table">
                {% for paginate in data.paginates %}
                    <tr>
                        <th>{{ paginate.nick_name }}</th>
                        <th>{{ paginate.mobile }}</th>
                        <th>{{ paginate.create_time }}</th>
                        <th>{{ paginate.last_login }}</th>
                    </tr>>
                {% endfor %}
{##}
{#                <tr>#}
{#                    <th>用户名</th>#}
{#                    <th>电话</th>#}
{#                    <th>注册时间</th>#}
{#                    <th>上次登录时间</th>#}
            </table>
        </div>

        <div class="box">
            <div id="pagination" class="page"></div>
        </div>

        <script>
            $(function() {
                $("#pagination").pagination({
                    currentPage: {{ data.current_page }},
                    totalPage: {{ data.pages }},
                    callback: function(current) {
                        window.location.href = '/admin/user_list?p=' + current
                    }
                });
            });
        </script>
</body>
</html>